package com.gitee.cheungming.goods.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author Zhang Ming
 * @since 2025-10-28
 */
@Getter
@Setter
@TableName("goods")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品名
     */
    @TableField("goods_name")
    private String goodsName;


    /**
     * 图片
     */
    @TableField("url")
    private String url;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 描述
     */
    @TableField("description")
    private String description;


    /**
     * 品牌
     */
    @TableField("brand")
    private String brand;

    /**
     * 分类
     */
    @TableField("category")
    private String category;

    /**
     * 库存
     */
    @TableField("stock")
    private Integer stock;

    /**
     * 锁定库存
     */
    @TableField("locked_stock")
    private Integer lockedStock;
}
